# -*- coding: utf-8 -*-
# @Time : 2019/1/15 15:16
# @Author : Administrator
# @File : login.py
# @Project : untitled1
# @title :
import requests
class test():
    def test_login(self):
        a = requests.session()
        b=a.post(url="http://192.168.2.150:8080/WoniuBoss2.5/log/userLogin",
                              data={"userName": "wncd005", "userPass": "woniu123",
                                    "checkcode": "0000"})
        print(b.text)

        return a
if __name__ == '__main__':
    t=test()
    t.test_login()